package com.shuqi.controller;

import android.content.Context;

import com.shuqi.activity.ProjectDetailsActivity;
import com.shuqi.interfaces.IEventListener;
import com.shuqi.model.ProjectDetailsModel;

/**
 * 专题详情Controller
 * 
 * @author zhuchen
 * 
 */
public class ProjectDetailsController extends ControllerBase {
    private ProjectDetailsModel model;

    public ProjectDetailsController(Context context) {
        this.model = new ProjectDetailsModel(context);
    }

    @Override
    public void addEventListener(IEventListener listener) {
        // TODO Auto-generated method stub
        model.addEventListener(listener);
    }

    @Override
    public void handle(int eventType, Object... objs) {
        // TODO Auto-generated method stub
        switch (eventType) {
            case EVENT_LOADPAGE:
                model.loadData(objs);
                break;

            default:
                break;
        }
    }

    @Override
    public void onDestroy() {
        model.onDestroy();

    }

}
